//
//  XMSwitchSettingItem.m
//  XMWeibo
//
//  Created by chi on 14-9-1.
//  Copyright (c) 2014年 xiaoming. All rights reserved.
//

#import "XMSwitchSettingItem.h"

@implementation XMSwitchSettingItem


- (BOOL)isOn
{
    return [[NSUserDefaults standardUserDefaults]boolForKey:self.key];
}

- (void)setIsOn:(BOOL)isOn
{
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    [defaults setBool:isOn forKey:self.key];
    [defaults synchronize];
}

@end
